﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace YogaStudio.Data.Domain
{
    public class Schedule
    {
        [Key]
        public int Id { get; set; }

        [ForeignKey("Semester")]
        [Required]
        public int SemesterId { get; set; }
        public virtual Semester Semester { get; set; }

        [Required]
        [Display(Name = "Year")]
        public int Year { get; set; }

        [Required]
        [Display(Name = "From Date")]
        public DateTime FromDate { get; set; }
        [Required]
        [Display(Name = "To Date")]
        public DateTime ToDate { get; set; }
       public virtual List<Section> Section { set; get; }

    }
}